package com.odm.communitymanage.ui.repair

import android.widget.RadioButton
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.odm.communitymanage.R
import com.odm.communitymanage.core.bean.HealthSituationOptions
import com.odm.communitymanage.core.bean.SubmitRepairType

/**
 * @description: 物业报修提交列表 适配器
 * @author: ODM
 * @date: 2020/4/14
 */
class SubmitRepairAdapter (data : MutableList<SubmitRepairType>)
    : BaseQuickAdapter<SubmitRepairType, BaseViewHolder>(R.layout.item_health_options , data) {

    override fun convert(holder: BaseViewHolder, item: SubmitRepairType) {
        holder.setText(R.id.tv_health_option  , item.repairType)
        holder.getView<RadioButton>(R.id.checkbox_health_option).isChecked = item.isSelected
    }
}